/*
 * =====================================================================================
 *
 *       Filename:  Connection.h
 *
 *    Description:
 *
 *        Version:  1.0
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Fang Dongheng (fndisme), fndisme@163.com
 *   Organization:
 *
 * =====================================================================================
 */
#ifndef FND_CONNECTION_H
#define FND_CONNECTION_H
#include <boost/asio.hpp>
#include "base/Message.h"
namespace FakeWeiXin {
	class Connection {
		public:
			~Connection();
			explicit Connection(boost::asio::io_service& ioService);
			bool syncConnect(const std::string& address, int16_t port);
		private:
			boost::asio::io_service& m_ioService;
			boost::asio::ip::tcp::socket m_socket;
	};
}
#endif

